<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>名片</title>
<link rel="stylesheet"  href="css/bootstrap.css"/>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<style type="text/css">

.bian{
width: 1000px;
height: 700px;
border: solid 3px black;
margin: 20px auto;
background-color:skyblue;

}
.h1{margin: 0px 50px 0px 10px;float: left;}
.tou{margin: 50px auto;height: 30px;}
#xingzheng{display: none;margin: 0 0 0 220px;}
#wendang{ display: none; margin: 0 0 0 350px;}
#renshi{ display: none;margin: 0 0 0 450px;}
#xitong{ display: none;margin: 0 0 0 200px;}
</style>
<script type="text/javascript">
$(
	function(){
$("#xing").hover(
	function(){
	$("#xingzheng").css("display","block");
	$("#wendang,#renshi,#xitong").css("display","none");	
	}
	);
$("#xi").hover(
	function(){
	$("#xitong").css("display","block");
	$("#wendang,#renshi,#xingzheng").css("display","none");	
	}
	);
$("#wen").hover(
	function(){
	$("#wendang").css("display","block");
	$("#xingzheng,#renshi,#xitong").css("display","none");	
	}
	);
$("#ren").hover(
	function(){
	$("#renshi").css("display","block");
	$("#wendang,#xingzheng,#xitong").css("display","none");	
	}
	);
});
</script>

<style type="text/css">
.body{width: 100%;padding: 10px 50px 10px 50px}
</style>

</head>
<body>


<div class="bian">
	<div class="h1"> <h2 style="color: blue;">OA管理系统</h2></div>
	<div class="tou">
<ul class="nav nav-pills">
  <li class="active"><a href="index.jsp">我的桌面</a></li>
  <li class="active"><a href="#">通告管理</a></li>
  <li class="active"><a href="#" id="wen">文档管理</a></li>
  <li class="active"><a href="#" id="xing">行政管理</a></li>
  <li class="active"><a href="#" id="ren">人事管理</a></li>
  <li class="active"><a href="#" id="xi">系统管理</a></li>
</ul>
<ul class="nav nav-pills" id="xingzheng">
  	<li><a href="#">会议室管理</a></li>
  	<li><a href="#">用车管理</a></li>
  	<li><a href="addSeal.jsp">用章管理</a></li>
  	<li><a href="addLibrary.jsp">图书借阅申请</a></li>
  	<li><a href="addCard.jsp">名片印制流程</a></li>
</ul>
	<ul class="nav nav-pills" id="wendang">
  		<li><a href="#">文档列表</a></li>
  		<li><a href="#">文档回收</a></li>
  	</ul>
	<ul class="nav nav-pills" id="xitong">
  		<li><a href="#">组织结构管理</a></li>
  		<li><a href="#">角色管理</a></li>
  		<li><a href="#">用户管理</a></li>
  		<li><a href="#">操作日志</a></li>
  		<li><a href="#">上传文件设置</a></li>
  		<li><a href="#">字典管理</a></li>
  	</ul>
  		<ul class="nav nav-pills" id="renshi">
  		<li><a href="#">请假申请</a></li>
  		<li><a href="#">出差申请</a></li>
  		<li><a href="#">收入证明流程</a></li>
  	</ul>
</div>
<div class="body">
<img src="images/u89.png">&emsp;行政管理》&emsp;名片印制流程
<hr>
<h3 style="color: red;">${result}</h3>
<form action="addCard" method="post">
<table id="biaoge1">
  <tr>
<td>申请人:</td>
<td><input type="text" name="uname" required=""></td>
  </tr>
    <tr>
<td>申请时间:</td>
<td><input type="text" name="day" placeholder="请选择申请日期"  Onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',skin:'whyGreen',readOnly:true})" style="border-radius:3px; width:220px;"></td>
  </tr>
    <tr>
<td>部门:</td>
<td><input type="text" name="dept" required=""></td>
<td>职位:</td>
<td><input type="text" name="post" required=""></td>
  </tr>
    <tr>
<td>手机号:</td>
<td><input type="text" name="phone"  pattern="1[0-9]{10}"  placeholder="请输入正确的11位手机号"></td>
<td>座机号:</td>
<td><input type="text" name="telephone"></td>
  </tr>
    <tr>
<td>数量:</td>
<td><input name="number" type="number" min="10" max="100" value="10" step="5"></td>
  </tr>
    <tr>
<td>备注:</td>
<td><input type="text" name="bei" style="width: 500px;height: 80px;"  required="arrow"></td>
  </tr>


</table>
<hr>

<script type="text/javascript">
function app(){
	console.log(11111111111111);
	var name=2;
	$.ajax({
		url:"queryApprover",
		data:{name:name},
		type:"post",
		dataType:"json",
		success:function(result){
			$("#shen").html(""); 
			$.each(result.userList,function(i,user){
				console.log(user.u_name);				
				$("#shen").append("<option>"+user.u_name +"&emsp;职位:"+user.ro_name+"</option>"); 
				/* $("<option>"+user.u_name +"&emsp;职位:"+user.ro_name+"</option>").appendTo("#shen"); */
			});
		}
	});
	
}	
</script>
下一步:<select id="shen" name="approver" onfocus="app()" style="width:200px">
<option> 请选择审批人</option>
<%-- <c:forEach items="${userList}" var="user" varStatus="vs">
		<option>${user.u_name }&emsp;职位:${user.ro_name}</option>
		</c:forEach> --%>
	</select>

<div class="div1">
<input class="btn btn-default" type="submit" value="确定" style="background-image: url(images/queding.png); width: 83px;height: 32px;">
<input class="btn btn-default" type="button" value="取消" style="background-image: url(images/quxiao.png); width: 83px;height: 32px;margin-left: 50px; ">
</div>

</form>

</div>

</div>
</body>
<style type="text/css">
.div1{margin: 20px 0 0 550px}
#biaoge1{ border-collapse:separate;border-spacing:10px 10px;}
</style>
</html>